package com.xifly.datatransmission.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.validation.constraints.Min;

public class User {

    private String username;

    private String password;

    @Min(20)
    private Integer age;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @JsonIgnore
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
